home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Content⁄Frame⁄Part quest < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Content/Frame/Part quest
  2. Sent:        5/20/96 2:31 PM
  3. Received:    5/22/96 8:31 AM
  4. From:        Mary Boetcher, mary_boetcher@quickmail.apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.         Reply to:   RE>Content/Frame/Part question
  9.  
  10. >> The content of a part I'm trying to build is basically
  11. text that the user edits in a FW_CEditText view. I keep an FW_CString in my
  12. Content class, but it needs to be updated before externalizing. So I would
  13. guess I should overide FW_CPart::ExternalizeContent() to do the
  14. synchronization, then call inherited::ExternalizeContent(), right?
  15.  
  16. Close; you should override FW_CContent::Externalize, not ExternalizeContent:
  17.  
  18. void CMyContent::Externalize(    Environment* ev,
  19.                                     ODStorageUnit* storageUnit,
  20.                                     FW_EStorageKinds storageKind,
  21.                                     FW_CCloneInfo* cloneInfo)
  22. {
  23.     UpdateContentString(ev);
  24.  
  25.     // Externalize in order of fidelity
  26.     ExternalizePartKind(ev, storageUnit);
  27.     ExternalizeText(ev, storageUnit);
  28. }
  29.  
  30. >> could a general UpdateContent() method be put in the FW_CPart class
  31. to handle things like content updating before externalization, apple event
  32. processing, linking, etc.?
  33. I'll investigate this. Thanks for the suggestion.
  34.  
  35. Mary Boetcher
  36. ODF Person
  37.